local function getupvaluetable(func, inname)
    local i = 1
    while true do
        local name, value = debug.getupvalue(func, i)
        if name == nil then
            return
        end
        
        if name == inname then
            return i,value
        end
        
        i=i+1
    end
end


local lua = _P.lua

lua.CMD.is_affected = function(uid,data)
    local affect_count = data.affect_count
    local affect_rate = data.affect_rate
    errlog("==affect_count==,===affect_rate===",affect_count,affect_rate)
    if affect_count == 0 or affect_rate == 0 then
        return false
    end

    return true
end